package com.piece.core.authentication.exception;

import com.piece.core.framework.constant.ExceptionAuthConstants;
import com.piece.core.framework.util.basic.I18nUtil;
import org.springframework.security.core.AuthenticationException;

/**
 * 用户名不匹配异常类
 */
public class UserNotMatchException extends AuthenticationException {

    public UserNotMatchException() {
        super(I18nUtil.message(ExceptionAuthConstants.USER_NOMATCH));
    }
}
